package com.lumlord.common.domain;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.lumlord.common.annotation.pojo.IgnoreColumn;
import com.lumlord.common.annotation.pojo.PK;
import com.lumlord.common.annotation.pojo.Table;
import com.lumlord.common.base.BaseEntity;

@Table(value = "t_action", DB = "yw_security_server")
public class Menu extends BaseEntity implements Serializable {
	@IgnoreColumn
	private static final long serialVersionUID = 1L;

	/** 主键ID，自增 **/
	@PK("id")
	private Integer id;

	/** 菜单名称 **/
	private String name;

	/** 父节点主键ID（当前表关联的主键） **/
	private Integer parantId;

	/** 菜单URL地址 **/
	private String menuUrl;

	/** 排序（数字大的靠前） **/
	private Integer orderNum;

	/** vue标识编码。非API 显示PAGE **/
	private String vueCode;

	/** 标记 **/
	private String remark;

	/** 设计者 **/
	private String designer;

	/** 所属class **/
	private String clazz;

	/** 服务名称 **/
	private String serverName;

	/** 方法名称 **/
	private String methodName;

	/** 模块名称 **/
	private String modeName;

	/** api接口，权限路径 **/
	private String action;
	
	/**权限树**/
	private List<Menu> actions = new ArrayList<Menu>();
	
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getParantId() {
		return parantId;
	}

	public void setParantId(Integer parantId) {
		this.parantId = parantId;
	}

	public String getMenuUrl() {
		return menuUrl;
	}

	public void setMenuUrl(String menuUrl) {
		this.menuUrl = menuUrl;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public String getVueCode() {
		return vueCode;
	}

	public void setVueCode(String vueCode) {
		this.vueCode = vueCode;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getDesigner() {
		return designer;
	}

	public void setDesigner(String designer) {
		this.designer = designer;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getModeName() {
		return modeName;
	}

	public void setModeName(String modeName) {
		this.modeName = modeName;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public List<Menu> getActions() {
		return actions;
	}

	public void setActions(List<Menu> actions) {
		this.actions = actions;
	}

 

}
